package com.xxl.job.executor.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.executor.service.IExceptionDistributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 异常处理流水回调分发给中台及业务系统（汇聚）
 * ETC 出口流水回调
 */
@JobHandler(value="etcBoutListCallbackHandler")
@Component
public class ETCBoutListCallbackHandler extends IJobHandler {

    @Autowired
    private IExceptionDistributeService exceptionDistributeService;

    @Override
    public ReturnT<String> execute(String param) throws Exception {
        XxlJobLogger.log("开始执行[ETC出口]异常流水包拆包");


        exceptionDistributeService.callback_etcboutList();


        XxlJobLogger.log("执行[ETC出口]数据同步任务结束");
        return SUCCESS;
    }
}

